package com.springboot.wisdom.serviceApi.system.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class DeptTree {

    private String deptId;
    private String deptName;
    private String deptType;
    private String deptParentId;
    private String deptParentName;
    private String deptPrincipalId;
    private String deptPrincipalPhone;
    private String deptPrincipalEmail;
    private Long deptState;
    private List<DeptTree> children;



    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
